package com.dingwei.superiordiary.bean;

import com.dingwei.superiordiary.base.MyBaseBean;

import java.util.List;

/**
 * Created time 2018/5/20.
 * Creator 南柯一梦丶 on
 * Personal signature 余生还长 何必慌张
 * Page description :
 */
public class ConfirmOrderBean extends MyBaseBean {
    /**
     * data : {"product":[{"id":"2","product_id":"118","product_name":"磁悬浮地球仪摆件，拥有属于自己的世界","icon":"http://139.199.211.51/yprj/uploads/product/118/icon.png?r=301238","price":206,"stock":"99999","freight":0,"option":null,"quantity":"8"},{"id":"1","product_id":"50","product_name":"缘之空 春日野穹 旗袍坐姿 手办","icon":"http://139.199.211.51/yprj/uploads/product/50/icon.png?r=304927","price":59,"stock":"99999","freight":0,"option":{"label":"春日野穹旗袍手办","value":"红"},"quantity":"1"}],"total_price":1707,"default_address":{"id":"16","name":"zhangc","mobile":"18223145722","province":"黑龙江","city":"鹤岗","county":"工农区","address":"盘龙花园C区","is_default":"2","province_id":"12","city_id":"170","county_id":"1448"}}
     */

    public DataBean data;

    public static class DataBean {
        /**
         * product : [{"id":"2","product_id":"118","product_name":"磁悬浮地球仪摆件，拥有属于自己的世界","icon":"http://139.199.211.51/yprj/uploads/product/118/icon.png?r=301238","price":206,"stock":"99999","freight":0,"option":null,"quantity":"8"},{"id":"1","product_id":"50","product_name":"缘之空 春日野穹 旗袍坐姿 手办","icon":"http://139.199.211.51/yprj/uploads/product/50/icon.png?r=304927","price":59,"stock":"99999","freight":0,"option":{"label":"春日野穹旗袍手办","value":"红"},"quantity":"1"}]
         * total_price : 1707
         * default_address : {"id":"16","name":"zhangc","mobile":"18223145722","province":"黑龙江","city":"鹤岗","county":"工农区","address":"盘龙花园C区","is_default":"2","province_id":"12","city_id":"170","county_id":"1448"}
         */

        public double total_price;
        public double total_freight;
        public DefaultAddressBean default_address;
        public List<ProductBean> product;

        public static class DefaultAddressBean {
            /**
             * id : 16
             * name : zhangc
             * mobile : 18223145722
             * province : 黑龙江
             * city : 鹤岗
             * county : 工农区
             * address : 盘龙花园C区
             * is_default : 2
             * province_id : 12
             * city_id : 170
             * county_id : 1448
             */

            public String id;
            public String name;
            public String mobile;
            public String province;
            public String city;
            public String county;
            public String address;
            public String is_default;
            public String province_id;
            public String city_id;
            public String county_id;
        }

        public static class ProductBean {
            /**
             * id : 2
             * product_id : 118
             * product_name : 磁悬浮地球仪摆件，拥有属于自己的世界
             * icon : http://139.199.211.51/yprj/uploads/product/118/icon.png?r=301238
             * price : 206
             * stock : 99999
             * freight : 0
             * option : null
             * quantity : 8
             */

            public String id;
            public String product_id;
            public String product_name;
            public String icon;
            public Double price;
            public String stock;
            public Double freight;
            public OptionBean option;
            public String quantity;
        }

        public static class OptionBean {
            /**
             * label : 春日野穹旗袍手办
             * value : 红
             */

            public String label;
            public String value;
        }
    }
}
